package cn.edu.lzzy.web;


import cn.edu.lzzy.handlers.BusinessException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {

    @GetMapping("/")
    public String index(){
        if(true){
            throw new BusinessException("这是一个自定异常处理类测试");
        }
        return "index";
    }

}
